import layout from '@/layout'
import request from '@/utils/request'
export default {
  path: '/role',
  name: 'role',
  component: layout,
  children: [{
    path: '',
    // name: 'role',
    component: () => import('@/views/role'),
    meta: {
      title: '角色',
      icon: 'setting'
    }
  }]
}

/**
 * 新增角色
 * @param {*} data 三个字段
 * @returns 请求
 */
export const addRole = data => request({
  url: '/sys/role',
  method: 'post',
  data
})
